<template>
  <van-list>
    <van-cell v-for="item in list" :key="item" :title="item.name" @click="emitclisk(item)" />
  </van-list>
</template>
<script>
import controls from "@/assets/control.json";
export default {
  computed: {

    list: function () {
      return controls;
    },
  },
  data() {
    return {
      loading: false,
      finished: false,
    };
  },
  methods: {
    emitclisk(item) {
       this.$emit("click", item); 
    },
  },
};
</script>

  